/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sg.edu.nus.iss.pacman.dao;

/**
 * A DAO interface for User Profile.
 * @author fredy
 */
public interface UserProfileDao
{
    /**
     * Finds the UserProfile by id.
     * @param name the name
     * @return the UserProfile
     */
    UserProfile findUserProfile(String name);

    /**
     * Saves the UserProfile.
     * @param userProfile the UserProfile
     * @return id
     */
    int saveUserProfile(UserProfile userProfile);

    /**
     * Delets the UserProfile.
     * @param name the name
     */
    void deleteUserProfile(String name);

    /**
     * Gets all the UserProfiles.
     * @return all the UserProfiles.
     */
    UserProfile[] getUserProfiles();
}
